package org.example.commodity.activity.timertask.processor;

import org.example.commodity.activity.entity.ActivityInfo;
import org.example.timertask.TimerEndProcessor;

public interface ICommodityActivityEndProcessor<T extends ActivityInfo> extends TimerEndProcessor<T> {


    /**
     * 结束活动
     *
     * @param activityId 活动id
     */
    void endActivity(Long activityId);

    /**
     * 强制下架活动
     *
     * @param activityId 活动id
     * @param exceptionLog exceptionLog
     */
    void offActivity(Long activityId, String exceptionLog);


    @Override
    void unStartToEnd(T item);

    @Override
    void startingToEnd(T item);
}
